PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-08-06 10:23:20.626479+00:00 (UTC)
In US/Central Time, this is 2024-08-06 05:23:20.626479-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/6f53768876554cf526e4803f7f7a5efba1a01557c38286f64de25fb8ac7da027.png
We are just generating a random time serie here.
../../_images/94ef149465eceb08ee7a0739a3237e9c17e0db74d0110ddf97a51571259b77b8.png
../../_images/94994cce474ff60d3c60beda070a3d8c2e272b0e63c1a8c38f7ca3eeb1ee33c5.png